//
//  HelperFile.h
//  DecorationDemo001
//
//  Created by qianfeng on 15/9/8.
//  Copyright (c) 2015年 AD Wang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface AWFactory : NSObject

//这个类的功能就是创建label 和button
+ (UILabel *)creatLabelWithFrame:(CGRect)frame
                            text:(NSString *)text ;
//创建button可以创建 标题按钮和 图片按钮
+ (UIButton *)creatButtonWithFrame:(CGRect)frame
                            target:(id)target
                               sel:(SEL)sel
                               tag:(NSInteger)tag
                             image:(NSString *)name
                             title:(NSString *)title;
//创建UIImageView
+ (UIImageView *)creatImageViewWithFrame:(CGRect)frame
                               imageName:(NSString *)name;
//创建UITextField
+ (UITextField *)creatTextFieldWithFrame:(CGRect)frame
                             placeHolder:(NSString *)string
                             delegate:(id <UITextFieldDelegate>)delegate
                             tag:(NSInteger)tag;

//创建Label的工厂，将特殊的元素传入，生产相对应的Label
+ (UILabel *)createLabelWithTitle:(NSString *)title frame:(CGRect)frame;
+ (UILabel *)createLabelWithTitle:(NSString *)title frame:(CGRect)frame textColor:(UIColor *)color;
+ (UILabel *)createLabelWithTitle:(NSString *)title frame:(CGRect)frame fontSize:(CGFloat)size;
+ (UILabel *)createLabelWithTitle:(NSString *)title frame:(CGRect)frame textColor:(UIColor *)color fontSize:(CGFloat)size;

//创建View的工厂，将特殊的元素传入，生产相应的View
+ (UIView *)createViewWithBackgroundColor:(UIColor *)color frame:(CGRect)frame;

//创建textField的工厂，将特殊的元素传入，生产相应的的textField
+ (UITextField *)createViewWithText:(NSString *)text frame:(CGRect)frame placeholder:(NSString *)placeholder textColor:(UIColor *)color borderStyle:(UITextBorderStyle)borderStyle;

////把一个秒字符串 转化为真正的本地时间
////@"1419055200" -> 转化 日期字符串
//+ (NSString *)dateStringFromNumberTimer:(NSString *)timerStr;
////根据字符串内容的多少  在固定宽度 下计算出实际的行高
//+ (CGFloat)textHeightFromTextString:(NSString *)text width:(CGFloat)textWidth fontSize:(CGFloat)size;
//
////获取 当前设备版本
//+ (double)getCurrentIOS;
////获取当前设备屏幕的大小
//+ (CGSize)getScreenSize;
//
////获得当前系统时间到指定时间的时间差字符串,传入目标时间字符串和格式
//+(NSString*)stringNowToDate:(NSString*)toDate formater:(NSString*)formatStr;
//
////获取 一个文件 在沙盒沙盒Library/Caches/ 目录下的路径
//+ (NSString *)getFullPathWithFile:(NSString *)urlName;
////检测 缓存文件 是否超时
//+ (BOOL)isTimeOutWithFile:(NSString *)filePath timeOut:(double)timeOut;


@end
